﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StatusList.aspx.cs" Inherits="CRM.Web.WorkOrder.StatusList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    
    <uc:ucHead ID="ucHead1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" id="tTitle">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" >工单状态列表</asp:Label></div>
    </div>
	
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div id="divMain" >
    <div style="width: 100%">
        <div class="listdiv">
            <table border="0" cellpadding="0" cellspacing="0" class="search" align="center">
                <tr>
                    <td class="title"><div  class="nowrap">
                        工单类型:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlORDERTYPEID" runat="server" CssClass="ddl">
                        </asp:DropDownList>
                    </td>
                    <td class="title" style="width: auto;">
                        &nbsp;
                    </td>
                    <td class="content"><div style="width: 100px; " class="nowrap">
                        <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                            OnClick="btnSearch_Click" /></div>
                    </td>
                </tr>
            </table>
            <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" 
                AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" 
                OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="True" 
                AllowSorting="True"  SortExpressionValue="ORDERSTATUSID">
                <Columns>
			        <asp:TemplateField HeaderText="工单状态编号" SortExpression="ORDERSTATUSID">
                        <ItemTemplate>
                            <asp:HyperLink id="hlModifyORDERSTATUSID" runat="server" NavigateUrl='<%# Eval("ORDERSTATUSID", ModifyUrl) %>'  Text='<%# Bind("ORDERSTATUSID") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="工单状态名称" SortExpression="ORDERSTATUSNAME">
                        <ItemTemplate>
                            <asp:HyperLink id="hlModifyORDERSTATUSNAME" runat="server" NavigateUrl='<%# Eval("ORDERSTATUSID", ModifyUrl) %>'  Text='<%# Bind("ORDERSTATUSNAME") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
			    <asp:BoundField DataField="ORDERTYPEID" HeaderText="工单类型编号"  
                        SortExpression="ORDERTYPEID" />
			    <asp:BoundField DataField="ORDERTYPENAME" HeaderText="工单类型名称"  SortExpression="ORDERTYPENAME" />
			    <asp:BoundField DataField="STATUS" HeaderText="状态"  SortExpression="STATUS" />
			    <asp:BoundField DataField="TYPE" HeaderText="状态类型"  SortExpression="TYPE" />
			    <asp:BoundField DataField="CREATETIME" HeaderText="创建时间"  SortExpression="CREATETIME" />
			    <asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号"  SortExpression="CREATEPEOPLEID" />
			    <asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人"  SortExpression="CREATEPEOPLE" />
			    <asp:BoundField DataField="LASTMODIFYPEOPLEID" HeaderText="最后修改人编号"  SortExpression="LASTMODIFYPEOPLEID" />
			    <asp:BoundField DataField="LASTMODIFYPEOPLE" HeaderText="最后修改人"  SortExpression="LASTMODIFYPEOPLE" />
			    <asp:BoundField DataField="LASTMODIFYTIME" HeaderText="最后修改时间"  SortExpression="LASTMODIFYTIME" />
			    <asp:BoundField DataField="REMARK" HeaderText="备注"  SortExpression="REMARK" />
			    <asp:TemplateField HeaderText="操作" ShowHeader="False">
                    <itemtemplate>
                    <div style="white-space: nowrap;">
                    <asp:HyperLink id="hlModify" runat="server" NavigateUrl='<%# Eval("ORDERSTATUSID", ModifyUrl) %>'>详细</asp:HyperLink>
                    <asp:LinkButton id="lbtnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="False" OnClientClick="return confirm('您确认要删除此条记录吗？');"></asp:LinkButton>            
                    </div>
				    </itemtemplate>
                    <headerstyle width="90px" />
                </asp:TemplateField>
                </Columns>	
                <RowStyle CssClass="row" />
                <AlternatingRowStyle CssClass="row2" />
                <HeaderStyle CssClass="header" />	
                <PagerStyle CssClass="pager" />	
            </dp:WebGridView>
        </div>
    </div>
</div>

    </form>
</body>
</html>
